package gob.pe.mtpe.ibatis.interfase;


import gob.pe.mtpe.bean.BeneficiarioBean;
import gob.pe.mtpe.bean.SeguroBean;
import gob.pe.mtpe.struts.form.BeneficiarioForm;
import gob.pe.mtpe.struts.form.SeguroVidaForm;

import java.util.List;


import com.ibatis.dao.client.Dao;
import com.ibatis.dao.client.DaoException;

public interface INTSeguro extends Dao{
	
	public List obtSeguro(SeguroVidaForm frm) throws DaoException;
	public List obtLisEmpAse() throws DaoException;
	public String obtEmpAse(String ruc) throws DaoException;
	public List obtLisTipDoc() throws DaoException;	
	public SeguroBean insertarPoliza(SeguroVidaForm frm) throws DaoException;
	public List obtLisTipMon() throws DaoException;
	public void insertaPolizaxTra(SeguroBean bean) throws DaoException;
	public List obtPolizaxTrabajador(SeguroVidaForm frm) throws DaoException;
	public List obtTrabajadorUnico(SeguroVidaForm frm) throws DaoException;
	public String validarDuplicidad(String ruc,String codsuc, String rucaseg, String fechasus,String numpol);
	public String contarTrabajador(String ruc, String codsuc, String numcor);
	public String obtEmpAseguradora(String ruc);
	public String existeTrabajador(String codtra);
	public void insertaTrabajador(SeguroBean bean) throws DaoException;
	public void modificarPoliza(SeguroVidaForm frm) throws DaoException;
	public SeguroBean obtPolizaxTrabajadorUnico(SeguroVidaForm frm) throws DaoException;
	public void modificarPolizaxTra(SeguroVidaForm frm) throws DaoException;
	public List obtLisVinFam() throws DaoException;
	public void insertaBeneficiario(BeneficiarioForm frm)  throws DaoException;
	public List obtLisBeneficiario(BeneficiarioForm frm) throws DaoException;
	public BeneficiarioBean obtBeneficiarioUnico(BeneficiarioForm frm) throws DaoException;
	public void modificarBeneficiario(BeneficiarioForm frm) throws DaoException;
	public void enviarPoliza(SeguroVidaForm frm) throws DaoException;
	public SeguroBean obtenerPoliza(SeguroVidaForm frm) throws DaoException;
	public SeguroBean obtenerPolizaRenovacion(SeguroVidaForm frm) throws DaoException;
	public List obtLisMotFin() throws DaoException;
	public void bajaPolizaxTra(SeguroVidaForm frm,String fecha, String motivo) throws DaoException;
	public List obtLisMotBajaDerec() throws DaoException;
	public void bajaBeneficiario(BeneficiarioForm frm,String fecha, String motivo) throws DaoException;
	public SeguroBean insertarRenovacion(SeguroVidaForm frm) throws DaoException;
	public void insertaRenovacionBeneficiario(SeguroVidaForm frm) throws DaoException;
	public void eliminarTrabajador(SeguroVidaForm frm) throws DaoException;
	public void eliminarBeneficiario(BeneficiarioForm frm) throws DaoException;
	public String existeTrabajadorxPoliza(String ruc,String codsuc,String corpol,String codtra,String fecing);
	public String existeModificarTrabajadorxPoliza(String ruc,String codsuc,String corpol,String codtra,String fecing, String cortra);
	public String existeBeneficiarioxPoliza(String ruc,String codsuc,String corpol,String codtra,String cortra,String codben);
	public void anularPoliza(SeguroVidaForm frm) throws DaoException;
	public List obtSeguroAnular(SeguroVidaForm frm) throws DaoException;
	public void anularPolizaTra(SeguroVidaForm frm) throws DaoException;
	public void anularPolizaBen(BeneficiarioForm frm) throws DaoException;
	
		 
}
